export default [
	{
		path: '/login',
		component: './Login/login',
		layout: false,
	},
	{
		path: '/',
		redirect: '/home',
	},
	{
		name: '个人主页',
		path: '/home',
		component: './Home',
		wrappers: ['@/wrappers/auth'],
	},
	{
		name: '管理员管理',
		path: '/manager',
		wrappers: ['@/wrappers/auth'],
		routes: [
			{
				path: 'super',
				name: '超级管理员',
				wrappers: ['@/wrappers/auth'],
				component: './Manager/super',
				icon: 'lc-user',
				access: 'canSeeSuperAdmin',
			},
			{
				path: 'normal',
				name: '普通管理员',
				wrappers: ['@/wrappers/auth'],
				component: './Manager/normal',
			},
		],
	},
	{
		name: '用户管理',
		path: '/user',
		wrappers: ['@/wrappers/auth'],
		routes: [
			{
				path: 'vip',
				name: 'Vip用户',
				wrappers: ['@/wrappers/auth'],
				component: './User/Vip',
				icon: 'shareAlt',
			},
			{
				path: 'normal',
				wrappers: ['@/wrappers/auth'],
				name: '普通用户',
				component: './User/Normal',
			},
			{
				path: 'shop',
				wrappers: ['@/wrappers/auth'],
				name: '商家',
				component: './User/Shop',
			},
		],
	},
	{
		name: '车辆信息',
		path: '/car/message',
		wrappers: ['@/wrappers/auth'],
		component: './Car',
	},
	{
		name: '服务信息',
		path: '/service/message',
		wrappers: ['@/wrappers/auth'],
		component: './service',
	},
	{
		name: '订单信息',
		path: '/order/message',
		wrappers: ['@/wrappers/auth'],
		component: './order',
	},
	{
		name: '详情页面',
		path: '/detail/:id',
		component: './detail',
		hideInMenu: true,
	},
];
